-- LiteStats configuration file
-- BACKUP YOUR CHANGES TO THIS FILE BEFORE UPDATING!

-- Stat font style configuration.
LPSTAT_FONT = {
	font = STANDARD_TEXT_FONT, -- Path to your font.
	color = {1,1,1}, -- {red,gree,blue}
	size = 12, -- Point font size.
	alpha = 0.8, -- Alpha transparency.
	outline = 1, -- Thin outline. 0 = no outline.
	shadow = { alpha=1, x=0 }, -- shadow = 1 is the same as shadow = { color="0 0 0", alpha=1, x=1, y=-1 }
}

LTIPICONSIZE = 20 -- Icon sizes in info tips. Depending on your tooltip configurations, you may want to change this.

-- Player class coloring function for optional use with fmt strings config.
-- Example use: fmt = class'G:'.." %d"..class'/'.."%d" (colors 'G:' and '/' and numbers retain the default text color)
-- Example2: fmt = class'%d'.."fps" (colors the fps number and "fps" retains the default text color)
local function class(string)
	local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[select(2,UnitClass'player')]
	return format("|cff%02x%02x%02x%s|r", color.r*255, color.g*255, color.b*255, string or '')
end

-- Modules Config. Note: omitting any variable will likely cause errors, check carefully when updating.
-- * More tip_anchor strings: http://www.wowwiki.com/API_GameTooltip_SetOwner
-- * To color any of your 'fmt' strings, use hex format ("|cffFFFF55*string*|r") or the class format described above.
LPSTAT_CONFIG = {
	Memory = {
		enabled = true,
		fmt_mb = "%.1fmb", -- "12.5mb"
		fmt_kb = "%.0fkb", -- "256kb" - only shows if memory is under one megabyte
		max_addons = 40, -- Set to nil or comment/delete this line to disable.
		anchor_frame = "RChat", anchor_to = "left", anchor_from = "left",
		x_off = 10, y_off = 0, tip_anchor = "ANCHOR_BOTTOMRIGHT", tip_x = 0, tip_y = 0
	},
	FPS = {
		enabled = true,
		fmt = "%dfps", -- "42fps"
		anchor_frame = "RChat", anchor_to = "left", anchor_from = "left",
		x_off = 120, y_off = 0,
	},
	Latency = {
		enabled = true,
		fmt = "%dms", -- "77ms"
	 	anchor_frame = "RChat", anchor_to = "right", anchor_from = "right",
		x_off = -120, y_off = 0,
	},
	Durability = {
		enabled = true,
		fmt = "%d%%D", -- "54%D" -- %% outputs %
		man = true, -- Hide bliz durability man.
		gfunds = true, -- Change to false to disable guild repairing.
		ignore_inventory = true, -- Ignore inventory gear when auto-repairing.
		gear_icons = false, -- Show your gear icons in the tooltip.
		anchor_frame = "LChat", anchor_to = "right", anchor_from = "right",
		x_off = -120, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Gold = {
		enabled = true, -- To clear all money data: /script for _,t in pairs(LPSTAT) do if type(t)=='table' then t.Gold = nil end end
		style = 2, -- Display styles: [1] 55g 21s 11c [2] 8829.4g [3] 823.55.94
		anchor_frame = "LChat", anchor_to = "right", anchor_from = "right",
		x_off = -10, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Clock = {
		enabled = true, -- Local time and the 24 hour clock can be enabled in-game via time manager (right-click)
		AM = "A", PM = "P", colon = ":", -- These values apply to the displayed clock.
		anchor_frame = "RChat", anchor_to = "right", anchor_from = "right",
		x_off = -10, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Location = {
		enabled = false,
		subzone = true, -- Set to false to display the main zone's name instead of the subzone.
		truncate = 18, -- Max number of letters for location text, set to 0 to disable.
		coord_fmt = "%.0f,%.0f", -- "44,19", to add tenths, use '%.1f' (digit determines decimal)
		anchor_frame = "Minimap", anchor_to = "top", anchor_from = "top",
		x_off = 0, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Coords = {
		enabled = false, -- Location tooltip has coords, this module is for displaying it as a separate stat.
		fmt = "%.0f,%.0f", -- "44,19"
		anchor_frame = "Minimap", anchor_to = "top", anchor_from = "top",
		x_off = 0, y_off = -10
	},
	Tracking = {
		enabled = false,
		fmt = "%s", -- "Beasts", [icon] inserts current tracking icon.
		iconsize = 18,
		anchor_frame = "Minimap", anchor_to = "bottomleft", anchor_from = "bottomleft",
		x_off = 2, y_off = 0,
	},
	Ping = {
		enabled = true,
		fmt = "|cffff5555*|r %s |cffff5555*|r", -- "* Katae *"
		hide_self = false, -- Hide player's ping
		anchor_frame = "Minimap", anchor_to = "bottom", anchor_from = "bottom",
		x_off = 0, y_off = 25,
	},
	DPS = {
		enabled = false,
		fmt = "%.0f dps", -- "5211 dps", to add tenths, use '%.1f' (digit determines decimal)
		hide_inactive = true, -- Hide dps text when not in combat or not doing damage.
		anchor_frame = "Minimap", anchor_to = "top", anchor_from = "bottom",
		x_off = 0, y_off = -5,
	},
	Guild = {
		enabled = true,
		fmt = "G: %d", -- "G: 5/114"
		maxguild = nil, -- Set a max amount listed, nil means no limit
		threshold = 1, -- Minimum level displayed (1-80)
		sorting = "class", -- Default roster sorting: name, level, class, zone, rank, note
		anchor_frame = "LChat", anchor_to = "left", anchor_from = "left",
		x_off = 10, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Friends = {
		enabled = true,
		fmt = "F: %d/%d", -- "F: 3/40"
		maxfriends = nil, -- Set a max amount listed, nil means no limit
		anchor_frame = "LChat", anchor_to = "left", anchor_from = "left",
		x_off = 120, y_off = 0, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Bags = {
		enabled = false,
		fmt = "B: %d/%d", -- "B: 24/98"
		anchor_frame = "LChat", anchor_to = "center", anchor_from = "center",
		x_off = 0, y_off = 0,
	},
	Talents = {
		enabled = false,
		fmt = "[icon] [name]: [spec %d/%d/%d] [unspent]", -- "Protection: 15/0/51 +5", [shortname] shortens spec name.
		iconsize = 15, -- size of talent [icon]
		nospam = true, -- hide talent spam when switching specs
		anchor_frame = "LChat", anchor_to = "left", anchor_from = "left",
		x_off = 10, y_off = 100, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Mail = {
		enabled = false,
		newmail = "New Mail!", nomail = "No New Mail",
		anchor_frame = "Minimap", anchor_to = "right", anchor_from = "topleft",
		x_off = -10, y_off = -80, tip_anchor = "ANCHOR_BOTTOMLEFT", tip_x = 0, tip_y = 0
	},
	Stats = {
		enabled = false,
			-- Available stat tags...
			--   Attack Power [ap]				Ranged Attack Power [rangedap]	Armor Penetration% [armorpen]	Expertise% [expertise]
			--   Melee Hit% [meleehit]			Ranged Hit% [rangedhit]			Spell Hit% [spellhit]			Melee Haste [meleehaste]
			--   Ranged Haste% [rangedhaste]	Spell Haste% [spellhaste]		Melee Crit% [meleecrit]			Ranged Crit% [rangedcrit]
			--   Spell Crit% [spellcrit]		Spellpower [spellpower]			Healing [healing]				Spell Pen [spellpen]
			--   Dodge% [dodge]					Parry% [parry]					Block% [block]					Defense Rating [defense]
			--   Avoidance% [avoidance]			MP5 I5SR [manaregen]			Armor Value [armor]
		spec1fmt = "AP:[ap] Crit:[meleecrit]% Hit:[meleehit]%", -- Spec #1 string
		spec2fmt = "Def:[defense] Armor:[armor] Avoidance:[avoidance]%", -- Spec #2 string
		anchor_frame = "UIParent", anchor_to = "top", anchor_from = "top",
		x_off = 0, y_off = -15,
	},
	Experience = {
		enabled = false,
		fmt = "L[level] - [cur]/[total] ([percent]%) R:[rest]", -- Tags: [level] [cur] [total] [percent] [rest]
		maxlevel = "Max Level",
		anchor_frame = "UIParent", anchor_to = "top", anchor_from = "top",
		x_off = 0, y_off = -30,
	}
}

-- Substitutions for long talent tree names, remove and/or change any.
LPSTAT_SUBS = {
	["Protection"] = "Prot",
	["Restoration"] = "Resto",
	["Feral Combat"] = "Feral",
	["Retribution"] = "Ret",
	["Discipline"] = "Disc",
	["Enhancement"] = "Enhance",
	["Elemental"] = "Ele",
	["Demonology"] = "Demon",
	["Destruction"] = "Destro",
	["Assassination"] = "Assassin",
	["Marksmanship"] = "Marks",
	["Beast Mastery"] = "BM",
}

LPSTAT_PROFILES = {
	["Name - Realm"] = {
		-- To change modules on a per-character basis, copy and paste any or all of
		-- the default module configs here and modify them at will.
		DPS = { enabled = false },
		Experience = { enabled = false },
		Stats = { spec1fmt = "[spellpower]SP ~ [manaregen]mp5" }
	},
--	["MAGE"] = { -- Class profile format, name must be localized
--		Stats = { spec1fmt = "Crit:[spellcrit] SP:[spellpower] Hit:[spellhit]" }
--	},
}
